package com.springclouddemo.service.user.repo.impl;

import com.springclouddemo.common.domain.User;
import com.springclouddemo.service.user.mapper.UserMapper;
import com.springclouddemo.service.user.repo.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepositoryImpl implements UserRepository {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(int userId) {
        return userMapper.findById(userId);
    }
}
